<?php
include 'checkSession.php';
$pageName = "postGallery";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
	<title>Sign Inventory</title>
	<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
</head>
<body>
<!-- Header -->
<div id="header">
	<div class="shell">
		<!-- Logo + Top Nav -->
				<?php include "header-top.php";?>

		<!-- End Logo + Top Nav -->
		
		<!-- Main Nav -->
				<?php include "menu-tab.php";?>

		<!-- End Main Nav -->
	</div>
</div>
<!-- End Header -->

<!-- Container -->
<div id="container" style="height: auto;">
	<div class="shell">
		
		<!-- Small Nav -->
		<div class="small-nav">
			<a href="#">Sign Post Gallery</a>
			<span>&gt;</span>
			Sign Post Gallery
		</div>
		<!-- End Small Nav -->
		
		<!-- Message OK --><!-- End Message OK -->		
		
		<!-- Message Error -->
		<!-- End Message Error -->
        <br />
		<!-- Main -->
		<div id="main">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			  <tr>
				<td width="71%" height="30" align="center"><?php
				if(isset($_REQUEST['msg'])) {
					if($_REQUEST['msg'] == "del") {
						echo '<span style="color:#CC0000;font-size:12px;">Sign Faces deleted sucessfully.';
					}
				}
				 ?></td>
				<td width="29%" height="30" align="right" valign="top"><!--<a href="signFaceManager.php?action=add">Create New</a>-->&nbsp;&nbsp;&nbsp;&nbsp;</td>
			  </tr>
		  </table>
			<div class="cl">&nbsp;</div>
			
			
			<!-- Content -->
			<div id="content" style="width:100%">
				
				<!-- Box -->
				<div class="box">
					<!-- Box Head -->
					<div class="box-head">
						<h2 class="left">Sign Post Gallery - Pick One AUTOFILL New Sign Post Record</h2>
													
					</div>
					
					<!--<p style="text-align: center;"><strong><span style="color: #ffffff;"><a href="signFaceManager.php?id='.$ListRow['sf_id'].'&action=edit"><img src="photo/'.$ListRow['sf_thumbnail'].'" border="0" width="75" height="75"/></a></span></strong></p>-->
					<!-- End Box Head -->	

					<!-- Table -->
					<div class="table">
					<table style="width: 100%;" border="0" cellspacing="10" cellpadding="-1" align="center">

					<tbody>
					
					<tr>
					
					<?php
					$intRows = 0;
		  $ListQry = mysql_query("SELECT * FROM `Sign_Posts` WHERE `sp_catalog_item_yesno` = '1'");
		  
		  $s = 1;
		  if(mysql_num_rows($ListQry) > 0) {
		  	while($ListRow = mysql_fetch_array($ListQry)) {
			echo "<td>";  

			$intRows++; 
			echo '<a href="signPostManager.php?lng='.$_GET["lng"].'&lat='.$_GET["lat"].'&id='.$ListRow['sp_id'].'&action=add"><p style=" background: none repeat scroll 0 0 #DED9CE;border: 1px solid #C5C5BD;border-radius: 0.2em 0.2em 0.2em 0.2em;box-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);min-height: 100px; width:150px;">
			<b>Size</b>: '.$ListRow['sp_dimension1'].' x '.$ListRow['sp_dimension2'].' <br/>
			<b>Length</b>: '.$ListRow['sp_length'].'&nbsp; QTY='.$ListRow['sp_num_posts'].'<br/>

			<b>Type</b>: '.$ListRow['sp_type'].'&nbsp;'.$ListRow['sp_material'].'<br/>
			<b>Mount</b>: '.$ListRow['sp_mounting'].'<br/>
			<b>Cost</b>: $'.$ListRow['sp_cost'].'<br/>

			</p></a>';        

			echo"</td>";

				if(($intRows)%5==0)  
	
				{  
	
				echo"</tr>";  
	
				}  
			}
		  }
			
		  ?>
						
						
						
						
					</div>
					<!-- Table -->
					
				</div>
            </div>
<div class="cl">&nbsp;</div>			
		</div>
		<!-- Main -->
	</div>
</div>
<!-- End Container -->

<!-- Footer -->
<?php include 'footer.php';?>
<!-- End Footer -->
	
</body>
</html>